import request from '@/utils/request'

// 查询预约人员明细列表
export function listPersonnel(query) {
  return request({
    url: '/system/personnel/list',
    method: 'get',
    params: query
  })
}

// 查询预约人员明细详细
export function getPersonnel(id) {
  return request({
    url: '/system/personnel/' + id,
    method: 'get'
  })
}

// 新增预约人员明细
export function addPersonnel(data) {
  return request({
    url: '/system/personnel',
    method: 'post',
    data: data
  })
}

// 修改预约人员明细
export function updatePersonnel(data) {
  return request({
    url: '/system/personnel',
    method: 'put',
    data: data
  })
}

// 删除预约人员明细
export function delPersonnel(id) {
  return request({
    url: '/system/personnel/' + id,
    method: 'delete'
  })
}

// 导出预约人员明细
export function exportPersonnel(query) {
  return request({
    url: '/system/personnel/export',
    method: 'get',
    params: query
  })
}